cmake_minimum_required(VERSION 2.8)
#添加OPENCV库
#指定OpenCV版本，代码如下
#find_package(OpenCV 3.3 REQUIRED)
#如果不需要指定OpenCV版本，代码如下
find_package(OpenCV REQUIRED)
 
#添加OpenCV头文件
include_directories(${OpenCV_INCLUDE_DIRS})
 
#显示OpenCV_INCLUDE_DIRS的值
message(${OpenCV_INCLUDE_DIRS})

project ( umat )

add_executable ( umat umat.cpp)

# 将库文件链接到可执行程序上
target_link_libraries( umat ${OpenCV_LIBS})
